#ifndef _BITMAP_H_
#define _BITMAP_H_

#define DEBUG

typedef struct {
	unsigned int length;
	unsigned int size;
	char *bit;
}cel_bitmap_t;

#define cel_bitmap_length(map)	(map->length)
#define cel_bitmap_size(map)	(map->size)

cel_bitmap_t *new_cel_bitmap(int opacity);
void free_cel_bitmap(cel_bitmap_t **map);
void cel_bitmap_set(cel_bitmap_t *map, unsigned int idx);
void cel_bitmap_remove(cel_bitmap_t *map, unsigned int idx);
int cel_bitmap_get(cel_bitmap_t *map, unsigned int idx);

#endif //_BITMAP_H_
